#!/usr/bin/expect --

spawn telnet 127.0.0.1 2000
expect "#"
send "terminate if [lindex $argv 0] \r\n"
expect "#"
send "exit\r\n"
interact
